package entity;

public class Decreate {
    /*
    用户id
     */
    private Integer id;
    /*
    聊天气泡
     */
    private String bubble;
    /*
    QQ主题
     */
    private String theme;
    /*
    聊天背景
     */
    private String background;
    /*
    头像挂件
     */
    private String pendant;
    /*
    用get和set方法对声明变量进行初始化操作
     */
    public Integer getId(){
        return id;
    }
    public void setId(Integer id){
        this.id=id;
    }
    public String getBubble(){
        return bubble;
    }
    public void setBubble(String bubble){
        this.bubble=bubble;
    }
    public String getTheme(){
        return theme;
    }
    public void setTheme(String theme){
        this.theme=theme;
    }
    public String getBackground(){
        return background;
    }
    public void setBackground(String background){
        this.background=background;
    }
    public String getPendant(){
        return pendant;
    }
    public void setPendant(String pendant){
        this.pendant=pendant;
    }
    /*
    无参构造
     */
    public Decreate(String theme, String answer, String bubble, String theme1, String background, String pendant) {

    }

    /*
    除了用户id以外对所有的变量进行初始化
     */
    public Decreate(String bubble, String theme, String background, String pendant) {
        this.bubble = bubble;
        this.theme = theme;
        this.background = background;
        this.pendant = pendant;
    }

    /*
    所有声明变量进行初始化(包括用户id)
    */
    public Decreate(Integer id, String bubble, String theme, String background, String pendant) {
        this.id = id;
        this.bubble = bubble;
        this.theme = theme;
        this.background = background;
        this.pendant = pendant;
    }
    public String toString(){
        return "{"+
                "id:"+id+
                ",聊天气泡:"+bubble+
                ",聊天主题:"+theme+
                ",聊天背景:"+background+
                ",头像挂件:"+pendant+
                "}\n";
    }
}
